using System;
using System.ComponentModel.DataAnnotations;

namespace ERP.Domain.Warehouse.Allocation
{
	/// <summary>
	/// 调拨单操作记录（创建/修改/审核/出库/入库/关闭等）
	/// </summary>
	public class TransferOpLog
	{
		[Key]
		public int Id { get; set; }

		public int TransferId { get; set; }

		/// <summary>
		/// 操作类型：CREATE/UPDATE/AUDIT/OUT/IN/CLOSE ...
		/// </summary>
		[StringLength(32)]
		[Required]
		public string OpType { get; set; }

		[StringLength(512)]
		public string OpContent { get; set; }

		[StringLength(64)]
		public string OpUser { get; set; }

		public DateTime CreatedAt { get; set; } = DateTime.Now;
	}
}

